

<template>
    <div class="container">
        <!-- 设计审核列表 -->
        <designList v-if="deviseShow" @goDevise="goDevise" @updatePhotos="updatePhotos" @defineSheJI="defineSheJI"/>
        <designupdate v-else :deviseList="deviseList" @goBack="goBack" />
    
        <defineListCom v-if="defineListFlag" :id="defineListFlag" @closePopUps="closePopUps"/>
    
    </div>
</template>
        
<script setup>
import { listMeasurement } from '@/api/costSum'
import designList from './components/designList'
import designupdate from './components/designupdate'
import defineListCom from './components/defineList';
let defineListFlag = ref(false)

// 切换页面
let deviseShow = ref(true)
// 数据
const deviseList = ref(null)
const goDevise = (v) => {
    deviseList.value = v
    deviseShow.value = false
}

// 返回上一级
const goBack = () => {
    deviseShow.value = true
}

const updatePhotos = () => {
    // deviseShow.value = false
    // 预览图片           
}
const closePopUps =()=>{
    defineListFlag.value = false
}

const defineSheJI = (props)=>{
    defineListFlag.value = props
}
</script>
        
<style scoped lang="scss"></style>